When you install System 7.5 from the CD, the QuickTime Musical Instruments Extension is installed in your system folder. This gives you the number of musical instruments supported by Apple. The QuickTime Musical Instruments Extension is actually a component. If you need to know if the instruments are present, issue FindNextComponent, searching for a component that has a type of 'inst' and subtype of 'ss '. To verify the results of the search, use MacsBug dcmd 'thing' or CDEV 'Things!'. Both are on the QuickTime 2.0 SDK CD ("Mac: QuickTime Tools: Things!" and "Mac: Programming stuff: QuickTime Debugging").
Here is a code snippet that ought to help you:
pascal Boolean AreQuickTimeMusicInstrumentsPresent(void) { ComponentDescription aCD; aCD.componentType = 'inst'; aCD.componentSubType = 'ss '; aCD.componentManufacturer = 'appl'; if(FindNextComponent((Component)0, &aCD) != NULL) return true; else return false; }
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help